package com.leo.blog.dto;

import java.util.List;

import com.leo.blog.entity.Bloger;
import com.leo.blog.enums.BlogerStateEnum;

public class BlogerExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//博客用户数量
	private int count;
	//操作(增删改的时候使用)
	private Bloger bloger;
	//用户列表(查询列表的时候使用)
	private List<Bloger> blogerList;
			
	//构造函数
	public BlogerExecution() {
				
	}
			
	//操作失败的时候使用的构造器
	public BlogerExecution(BlogerStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
			
	//操作成功的时候使用的构造器
	public BlogerExecution(BlogerStateEnum stateEnum, Bloger bloger) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.bloger = bloger;
	}
			
	//操作成功的时候使用的构造器
	public BlogerExecution(BlogerStateEnum stateEnum, List<Bloger> blogerList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.blogerList = blogerList;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Bloger getBloger() {
		return bloger;
	}

	public void setBloger(Bloger bloger) {
		this.bloger = bloger;
	}

	public List<Bloger> getBlogerList() {
		return blogerList;
	}

	public void setBlogerList(List<Bloger> blogerList) {
		this.blogerList = blogerList;
	}

	
}
